import request from '@/utils/request'
import scope from './scope'
const apiPrefix = `${process.env.VUE_APP_BASE_API}/${scope}/codeGenerator/`

export const getList = (params, config = {}) => {
  params = params || {}
  return request.get(apiPrefix + 'list', { params: params }, config)
}

export const getTableColumn = (params, config = {}) => {
  params = params || {}
  return request.get(apiPrefix + 'QueryTableColumn', { params: params }, config)
}

export const createCode = (params, config = {}) => {
  return request.post(apiPrefix + 'CreateCode', params, config)
}
